<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/24
 * Time: 11:20
 */
$process = new swoole_process(function (swoole_process $pro){
    //todo
    //echo 1111;
    $pro->exec('/usr/local/php/bin/php', [__DIR__. '/../server/http_server.php']);
}, false);

$pid = $process->start();
echo $pid . PHP_EOL;

swoole_process::wait();